#include<stdio.h>
#include<time.h>
void game()
{
   int num=0;
   int r=0;
   srand((unsigned)time(NULL));
   r=rand()%100;   
   do
   {
      printf("\033[40;34m please input the number you guess: \33[0m\n");
      scanf("%d",&num);
      if(num>r)
      {
          printf("\033[40;34m the target is less than %d \33[0m\n",num);
      }
      else if(num<r)
      {
          printf("\033[40;34m the target is larger than %d \33[0m\n",num);
      }
      else
      {
          printf("\033[40;41m congratulation, you guessed it! \33[0m\n");
          break;
      }
    }while(1);
}
